package com.app.shop.constants;

/**
 * @Title
 * @Description (微信接口认证常量类)
 * @author Garfield Miao
 * @date 2019年21月48日
 * @upAuthor Garfield Miao
 * @update 2019年21月48日
 */
public class Constants {

	
	/**
	 * 微信appID
	 */
	public static final String APPID="wxd29c7ee996c7abed";
	/**
	 * 微信appsecret
	 */
	public static final String APPSECRET="98476f77745bcc4625bd5349b0d61a6f";
	
	
	 // 微信加密签名
    public final static String SIGNATURE = "signature";
    // 时间戳
    public final static String TIMESTAMP = "timestamp";
    // 随机数
    public final static String NONCE = "nonce";

    // 随机字符串
    public final static String ECHOSTR = "echostr";
	
	/**
     * 字符串：空
     */
    public final static String EMPTY_STR = "";

    /**
     * 半角字符：空格
     */
    public final static String BLANK_STR = " ";

    /**
     * 半角字符：斜杠
     */
    public final static String SLASH = "/";

    /**
     * 半角字符：双引号
     */
    public final static String DOUBLE_Q_MARKS = "\"";

    /**
     * 半角字符：单引号
     */
    public final static String SINGLE_Q_MARKS = "'";
    /**
     * 半角字符：竖线
     */
    public final static String VERT_LINE = "|";

    /**
     * 半角字符：反斜杠
     */
    public final static String BACKSLASH = "\\";

    /**
     * 半角字符：点
     */
    public final static String POINT = ".";

    /**
     * 半角字符：逗号
     */
    public final static String COMMA = ",";
    /**
     * 字符：分号
     */
    public final static String SEMICOLON = ";";
    /**
     * 半角字符：下划线
     */
    public final static String UNDERLINE = "_";

    /**
     * 半角字符：中划线
     */
    public final static String MIDDLELINE = "-";

    /**
     * 半角符号：冒号
     */
    public final static String COLON = ":";

    /**
     * 半角符号：等号
     */
    public final static String EQUAL = "=";

    /**
     * 数字：0
     */
    public final static byte ZERO = 0;

    /**
     * 数字：1
     */
    public final static byte ONE = 1;

    /**
     * 数字：-1
     */
    public final static byte MINUS_ONE = -1;

    /**
     * 字母：x
     */
    public final static String X = "x";

    /**
     * 字符串：and
     */
    public final static String AND_STR = "and";

    /**
     * 字符：&
     */
    public final static String AND_CHAR = "&";

    /**
     * UT8编码
     */
    public final static String UTF8 = "utf-8";

    /**
     * GBK编码
     */
    public final static String GBK = "gbk";

    /**
     * 字符：%
     */
    public final static String PRECENT = "%";
    /**
     * 
     */
    public final static String MD5SDCHECK ="MYCHECKZJHWY58AD2001"; 
    /**
     * 微信access请求验证
     */
    public static final String CHECKWXACES="HLWXCHKACES";
    
    
  //缓存开关
  	public static boolean isCache = true;

	public static boolean isCache() {
		return isCache;
	}

	public static void setCache(boolean isCache) {
		Constants.isCache = isCache;
	}
  	
	/**
//	 * 微信加密签名
//	 */
//	public static String signature="";
//	
//	/**
//	 *  时间戮
//	 */
//	public static String timestamp ;
//    /**
//     *  随机数
//     */
//	public static String nonce = "";
//    /**
//     * 随机字符串
//     */
//	public static String echostr = "";
	
	/**
	 * 微信 access_token
	 */
	public static String accessToken ="";

	/*public static String getSignature() {
		return signature;
	}

	public static void setSignature(String signature) {
		Constants.signature = signature;
	}

	public static String getTimestamp() {
		return timestamp;
	}

	public static void setTimestamp(String timestamp) {
		Constants.timestamp = timestamp;
	}

	public static String getNonce() {
		return nonce;
	}

	public static void setNonce(String nonce) {
		Constants.nonce = nonce;
	}

	public static String getEchostr() {
		return echostr;
	}

	public static void setEchostr(String echostr) {
		Constants.echostr = echostr;
	}*/

	public static String getAccessToken() {
		return accessToken;
	}

	public static void setAccessToken(String accessToken) {
		Constants.accessToken = accessToken;
	} 
	
	
	
	
	
  	
}
